home *** CD-ROM | disk | FTP | other *** search
- property spriteNum
- global joystick, joy1
-
- on beginSprite
- if the platform contains "mac" then
- sprite(spriteNum).visible = 0
- sprite(spriteNum).scriptInstanceList = []
- else
- joystick.useJoy(1)
- joy1 = [127, 127, 127]
- end if
- end
-
- on exitFrame me
- B = joystick.button(1)
- joy1[1] = joystick.xPos() / 256
- joy1[2] = 256 - (joystick.yPos() / 256)
- joy1[3] = joystick.zPos() / 256
- end
-